package com.xr.miniprogram.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xr.miniprogram.mapper.MiniProgramQuickEntryMapper;
import com.xr.miniprogram.domain.MiniProgramQuickEntry;
import com.xr.miniprogram.service.IMiniProgramQuickEntryService;

import javax.annotation.Resource;

/**
 * 首页快捷按钮Service业务层处理
 * 
 * @author wls
 * @date 2023-09-22
 */
@Service
public class MiniProgramQuickEntryServiceImpl implements IMiniProgramQuickEntryService 
{
    @Resource
    private MiniProgramQuickEntryMapper miniProgramQuickEntryMapper;

    /**
     * 查询首页快捷按钮
     * 
     * @param id 首页快捷按钮主键
     * @return 首页快捷按钮
     */
    @Override
    public MiniProgramQuickEntry selectMiniProgramQuickEntryById(Long id)
    {
        return miniProgramQuickEntryMapper.selectMiniProgramQuickEntryById(id);
    }

    /**
     * 查询首页快捷按钮列表
     * 
     * @param miniProgramQuickEntry 首页快捷按钮
     * @return 首页快捷按钮
     */
    @Override
    public List<MiniProgramQuickEntry> selectMiniProgramQuickEntryList(MiniProgramQuickEntry miniProgramQuickEntry)
    {
        return miniProgramQuickEntryMapper.selectMiniProgramQuickEntryList(miniProgramQuickEntry);
    }

    /**
     * 新增首页快捷按钮
     * 
     * @param miniProgramQuickEntry 首页快捷按钮
     * @return 结果
     */
    @Override
    public int insertMiniProgramQuickEntry(MiniProgramQuickEntry miniProgramQuickEntry)
    {
        return miniProgramQuickEntryMapper.insertMiniProgramQuickEntry(miniProgramQuickEntry);
    }

    /**
     * 修改首页快捷按钮
     * 
     * @param miniProgramQuickEntry 首页快捷按钮
     * @return 结果
     */
    @Override
    public int updateMiniProgramQuickEntry(MiniProgramQuickEntry miniProgramQuickEntry)
    {
        return miniProgramQuickEntryMapper.updateMiniProgramQuickEntry(miniProgramQuickEntry);
    }

    /**
     * 批量删除首页快捷按钮
     * 
     * @param ids 需要删除的首页快捷按钮主键
     * @return 结果
     */
    @Override
    public int deleteMiniProgramQuickEntryByIds(Long[] ids)
    {
        return miniProgramQuickEntryMapper.deleteMiniProgramQuickEntryByIds(ids);
    }

    /**
     * 删除首页快捷按钮信息
     * 
     * @param id 首页快捷按钮主键
     * @return 结果
     */
    @Override
    public int deleteMiniProgramQuickEntryById(Long id)
    {
        return miniProgramQuickEntryMapper.deleteMiniProgramQuickEntryById(id);
    }
}
